package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CWorkscopyrightDao;
import gov.ccswj.modules.ccbusiness.entity.CWorkscopyrightEntity;
import gov.ccswj.modules.ccbusiness.service.CWorkscopyrightService;



@Service("cWorkscopyrightService")
public class CWorkscopyrightServiceImpl implements CWorkscopyrightService {
	@Autowired
	private CWorkscopyrightDao cWorkscopyrightDao;
	
	@Override
	public CWorkscopyrightEntity queryObject(Integer id){
		return cWorkscopyrightDao.queryObject(id);
	}
	
	@Override
	public List<CWorkscopyrightEntity> queryList(Map<String, Object> map){
		return cWorkscopyrightDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cWorkscopyrightDao.queryTotal(map);
	}
	
	@Override
	public void save(CWorkscopyrightEntity cWorkscopyright){
		cWorkscopyrightDao.save(cWorkscopyright);
	}
	
	@Override
	public void update(CWorkscopyrightEntity cWorkscopyright){
		cWorkscopyrightDao.update(cWorkscopyright);
	}
	
	@Override
	public void delete(Integer id){
		cWorkscopyrightDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cWorkscopyrightDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cWorkscopyrightDao.delete(entname);
		
	}
}
